import request from '@/utils/request'

import type {
    addAssignorParams,
    realAuthParams
} from '@/types'

// 查询委托人列表
export const getAssignorlist = (data:any) => {
    return request({
        url: '/app/assignor/getRelateEnt',
        method: 'get',
        data
    })
}

// 添加委托人
export const addAssignor = (data:addAssignorParams) => {
    return request({
        url: '/app/assignor/useAssignorCode',
        method: 'post',
        data
    })
}

// 认证
export const realAuth = (data:realAuthParams) => {
    return request({
        url: '/app/assignor/realAuth',
        method: 'post',
        data
    })
}